import Vue from 'vue';

const list = (params) => {
    return Vue.prototype.$u.get('coupon/list', params);
};

const detail = (params) => {
    return Vue.prototype.$u.get('coupon/detail', params);
};

const add = (params) => {
    return Vue.prototype.$u.post('coupon/getCoupon', params);
};

const my_list = (params) => {
    return Vue.prototype.$u.get('coupon/my_coupon', params);
}

export default {
    list,
    detail,
    add,
    my_list,
};
